#include <iostream>
#include <algorithm>
#include <vector>

using namespace std;

// 声明函数原型
vector<string> eight(string str);

int main() {
    string str;
    cin >> str;
    auto es = eight(str);
    for (auto e: es) {
        cout << e << endl;
    }

    return 0;
}

vector<string> eight(string str) {
    int size = 8;
    vector<string> result;
    for (int i = 0; i < str.length(); i += size) {
        string sub = str.substr(i, size);
        if (sub.length() < size) {
            sub.append(size - sub.length(), '0');
        }
        result.push_back(sub);
    }
    return result;
}
